package com.sendingFBpost;

import com.facebook.android.AsyncFacebookRunner;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class SendingFBPostActivity extends Activity {
 Button btnShow;
 EditText etText;
 
 @Override
 protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
Log.v("t","ONCreate....");
  setContentView(R.layout.main);
 }   
 protected void onStart() {
  super.onStart();
  Log.v("t","onStart....");
  btnShow = (Button)findViewById(R.id.btnShow);
  etText = (EditText)findViewById(R.id.etText);
  
  btnShow.setOnClickListener(new OnClickListener() {
   
   @Override
   public void onClick(View v) {
    // TODO Auto-generated method stub
    String str = etText.getText().toString();
    Intent intent = new Intent(SendingFBPostActivity.this,FBAppActivity.class);
    intent.putExtra("facebookMessage", str);
    startActivity(intent);
    
   }
  });
  
  
  
 } // closing onCreate
 


} // closing class
